/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.institution.uitls;

public enum BusinessCode {
    SUCCESS(0, "操作成功"),
    FAILURE(-1, "操作失败"),
    EXCEPTION(-2, "执行过程中发生异常"),
    NOT_LONGIN(10000, "没有登录，无法执行操作"),
    INSUFFICIENT_PARAM(102005, "缺少必要的参数"),

    EMPTY_CATEGORY(24001, "未提交目录信息"),
    EMPTY_CATEGORY_CORPCODE(24002, "目录所属公司不能为空"),
    EMPTY_CATEGORY_DISTRICT(24002, "目录所属公司不能为空"),
    EMPTY_CATEGORY_NAME(24003, "目录名称不能为空"),
    EMPTY_CATEGORY_TYPE(24004, "目录类型不能为空"),
    EMPTY_CATEGORY_PID(24003, "父级目录id不能为空"),
    CATEGORY_EXIST(24005, "目录已存在"),
    CATEGORY_NOT_EXIST(24006, "目录不存在"),
    CATEGORY_EXIST_INSTITUTIONS(24007, "目录下存在法规制度数据或子目录，无法删除"),
    EMPTY_CATEGORY_ID(24008, "目录id不能为空"),

    EMPTY_INSTITUTION_TYPE(24009, "法规制度类型不能为空"),
    EMPTY_INSTITUTION_CORPCODE(24010, "法规制度所属公司不能为空"),
    EMPTY_INSTITUTION(24011, "提交法规制度信息不能为空"),

    EMPTY_INSTITUTION_CATEGORY_ID(24012, "所属目录不能为空"),
    EMPTY_INSTITUTION_FILE_NAME(24013, "文件名称不能为空"),
    EMPTY_INSTITUTION_VERSION(24014, "文件版本号不能为空"),
    EMPTY_INSTITUTION_ATTACHMENT(24015, "必须上传文件"),
    EMPTY_INSTITUTION_CODE(24016, "原文件code不能为空"),
    EMPTY_INSTITUTION_PUBLICATION_DATE(24017, "发版日期不能为空"),
    EMPTY_INSTITUTION_EXECUTION_DATE(24018, "实施日期不能为空"),
    INSTITUTION_PUBLICATION_DATE_AFTER_EXECUTION_DATE(24017, "发版日期不能在实施日期之后"),
    INSTITUTION_EXIST(24019, "已存在重复法规制度，请对原法规制度进行修订"),
    INSTITUTION_NOT_EXIST(24020, "法规制度不存在"),
    INSTITUTION_LOST(24021, "法规制度缺少文件"),
    ORIGINAL_INSTITUTION_NOT_EXIST(24022, "原文件不存在"),
    EDIT_EMPTY_LIST(24023, "修订列表不能为空"),
    EMPTY_INSTITUTION_DISTRICT_CODE(24020, "片区制度片区code不能为空"),

    EMPTY_ASSESSMENT_CORPCODE(24024, "所属公司不能为空"),
    ASSESSMENT__EMPTY_OPERATIONTYPE(24025, "操作类型不能为空"),
    ASSESSMENT_ILEAGEL_OPERATIONTYPE(24026, "操作类型值不合法"),
    EMPTY_ASSESSMENT(24027, "评审修订不能为空"),
    EMPTY_ASSESSMENT_CONFORMANCE(24028, "合规评价不能为空"),

    EMPTY_ASSESSMENT_REVISEDESCRIPTION(24028, "修订描述不能为空"),
    EMPTY_ASSESSMENT_REVISEREASON(24029, "修订原因不能为空"),
    EMPTY_ASSESSMENT_CONFORMANCE_DESCRIPTION(24028, "合规评价描述不能为空"),
    EMPTY_ASSESSMENT_CONFORMANCE_REASON(24029, "合规评价原因不能为空"),
    EMPTY_ASSESSMENT_VERSION(24030, "版本不能为空"),
    EMPTY_ASSESSMENT_FILEDATE(24031, "归档日期不能为空"),
    EMPTY_ASSESSMENT_FILENAME(24032, "文档名称不能为空"),
    EMPTY_ASSESSMENT_TYPE(24033, "文档类型不能为空"),
    EMPTY_ASSESSMENT_FILE(24034, "上传文件不能为空"),
    ASSESSMENT_NOT_EXIST(24035, "评估修订不存在"),
    CONFORMANCE_ASSESSMENT_NOT_EXIST(24035, "合规评价不存在"),

    EMPTY_INSTITUTION_ID(24036, "法规制度ID不能为空"),
    EMPTY_INSTITUTION_APPROVER(24037, "指定审核人不能为空"),

    REQUEST_ONE_ASSESSMENT_FILE(24038, "只能上传一个文件"),

    EMPTY_ASSESSMENT_FILE_ITEM(24039, "上传文件解析数据结果为空"),
    EMPTY_CONFORMANCE_ID(24036, "合规评价ID不能为空"),
    EMPTY_REVISE_ID(24036, "评估修订ID不能为空"),
    EMPTY_REVISE_YEAR(24036, "评估修订年份不能为空"),

    OLD_RECORD_NOT_EXIST(24037, "原纪录不存在"),
    DISTRICT_NOT_EXIST(24038, "未对水司进行片区划分"),
    DISTRICT_NOT_EXIST_TIP(0, "未对水司进行片区划分"),
    EMPTY_OPERATION_TYPE(24025, "操作类型不能为空"),
    ILEAGEL_OPERATION_TYPE(24026, "操作类型值不合法"),
    REVISE_CAN_NOT_DELETE(24035, "只能删除草稿"),
    CONFORMANCE_CAN_NOT_DELETE(24035, "只能删除草稿"),

    EMPTY_LAW_CORP(24011, "法规引入信息不能为空"),
    EMPTY_LAW_CODE(24011, "法规引入code不能为空"),
    EMPTY_CORP_CODE(24011, "公司code不能为空"),
    LAW_NOT_EXIST(24011, "该法规不存在"),
    LAW_CORP_NOT_EXIST(24011, "公司法规不存在"),
    LAW_DISCARDED(24011, "该法规已经被废除"),
    EMPTY_LAW_CATEGORY_ID(24012, "目录不能为空"),
    LAW_CORP_EXIST(24011, "公司法规已引入,请勿重复引入"),
    ERROR_CREATE_CATEGORY(24012, "法规引入时创建目录失败"),
    ;
    private final int code;
    private final String description;

    public int getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }

    BusinessCode(int code, String description) {
        this.code = code;
        this.description = description;
    }
}
